package ltd.hanamaki.study.operator;

/**
 * 自增自减
 */
public class Demo03 {

    public static void main(String[] args) {

        /* 自增 ++  自减 -- */
        int a = 3;
        System.out.println(a); // 3
        int b = a++;
        System.out.println(a); // 4
        System.out.println(b);// 3
        int c = ++a;
        System.out.println(a);//5
        System.out.println(c);//5


    }
}
